package com.gs.servicea;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: gs
 * @Date: 2024/3/9 17:17
 * @Version: v1.0.0
 * @Description: TODO
 **/
@RestController
public class ServiceAController {
        @RequestMapping(value = "/sayHello/{name}",
                method = RequestMethod.GET)
        public String sayHello(@PathVariable("name") String name) {
            return "{'msg': 'hello, " + name + "'}";
        }
}
